<% form_tag '#', :id => "verify_form_#{@user.id}" do %>
<dl>
  <dt>验证码：</dt>
  <dd><%= text_field_tag :verify_code %></dd>
  <dd>
    <%= hidden_field_tag :verify_image_id, @verify_image.id %>  
    <%= fetion_verify_image_tag @verify_image %>
  </dd>
  <dd class="right">
    <%= link_to_remote '提交',
          :url => check_verify_in_users_index_fetion_url(@user.id),
          :method => :put,
          :with => "$('verify_form_#{@user.id}').serialize()",
          :loading => "$('submit_fetion_verify_#{@user.id}').update('提交中...')",
          :failure => "alert(fetion_sm_state_name(request.responseText));$('reset_fetion_verify_#{@user.id}').onclick()", 
          :success => "$('verify_#{@user.id}').hide()",
          :complete => "$('submit_fetion_verify_#{@user.id}').update('提交')",
          :html => {
            :id => "submit_fetion_verify_#{@user.id}",
            :class => :submit
          }
      %>
     <%= link_to_remote '看不清，换一张',                
            :update => "verify_#{@user.id}",
            :url => new_verify_in_users_index_fetion_url(@user.id),
            :method => :get,
            :loading => "$('reset_fetion_verify_#{@user.id}').update('加载中...')",
            :complete => "$('reset_fetion_verify_#{@user.id}').update('看不清，换一张');",
            :html => {
              :id => "reset_fetion_verify_#{@user.id}",                  
              :class => :reset
            }
      %>
  </dd>
</dl>
<% end %>